package cate.common.table.item.equip.row;

import cate.common.table.EExcelNoteField;
import cate.common.table.EExcelRowClass;
import cate.common.table.ERow;

@EExcelRowClass(IDTitle = "装备ID")
public class JobAttrRow extends ERow {
    @EExcelNoteField(fieldName = "战士属性")
    public String soldier;
    @EExcelNoteField(fieldName = "法师属性")
    public String caster;
    @EExcelNoteField(fieldName = "坦克属性")
    public String tank;
    @EExcelNoteField(fieldName = "辅助属性")
    public String support;

    public String getAttrByJob(byte job) {
        switch (job) {
            case 1:
                return soldier;
            case 2:
                return caster;
            case 3:
                return tank;
            case 4:
                return support;
            default:
                return "";
        }
    }

}
